package com.wyg.blog.mapper;

import com.wyg.blog.model.user.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper {
    List<Role> getRoleByUid(Integer uid);

    Role getRoleByName(String name);

    boolean addRole(Role role);

    boolean updateRole(Role role);

    boolean deleteRole(Integer id);
}
